package com.da.javatest.design.schema.decorator.other2;

public class HanpiDecorator extends Hanpi {
    private Hanpi hanpi;

    public HanpiDecorator(Hanpi hanpi) {
        this.hanpi = hanpi;
    }

    @Override
    public String getContent() {
        return super.getName() + ":\n" + hanpi.getContent();
    }
}
